import { RouteRecordRaw } from "vue-router";

/** 路由组件 */
export const components: { [k: string]: RouteRecordRaw } = {
  // three: {
  //   path: "/three",
  //   name: "Three",
  //   meta: { title: 'three.js' },
  //   component: () => import("@/view/threeJs/index.vue")
  // },
  theme: {
    path: "/teme",
    name: "Theme",
    meta: { title: '主题' },
    component: () => import("@/view/Theme/index.vue")
  },
}

/** 脚手架组件 */
export const scaffold: RouteRecordRaw = {
  path: "/",
  name: "/",
  redirect: "/home",
  component: () => import('@/design/scaffold/index.vue'),
  children: [
    {
      path: '/blank',
      name: 'blank',
      meta: { title: '暂未完成' },
      component: () => import('@/design/error/blank.vue'),
    },
    {
      path: "/home",
      name: "Home",
      meta: { title: '首页' },
      component: () => import("@/view/Home/index.vue")
    }
  ]
}
